package br.com.danieljr.crowdmap.fabricas;

public class FabricaCor {
	public static int retornaCor(int sinal) {
		int cor;
		if (sinal < 5) {
			cor = 0x1FFF0000;
		} else if (sinal < 7 && sinal >= 5) {
			cor = 0x1FFFA500;
		} else if (sinal < 10 && sinal >= 7) {
			cor = 0x1FFFFF00;
		} else if (sinal < 12 && sinal >= 10) {
			cor = 0x1F0000FF;
		} else {
			cor = 0x1F008000;
		}
		return cor;
	}
}
